package edu.nbut.hotel.model.dao;

import edu.nbut.hotel.model.dto.PreOrder;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface PreOrderDao {
    List<PreOrder> queryAll();
    PreOrder queryById();
    List<PreOrder> queryByGuestName(String Name);
    List<PreOrder> queryByContact(String contact);
    List<PreOrder> queryByRoomNumber(String roomNumber);
    boolean addPreOrder(PreOrder order);
    boolean updatePreOrder(PreOrder order);
    boolean deletePreOrderById(int id);
}
